package com.guaoran.solr;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.apache.solr.client.solrj.beans.Field;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author : 孤傲然
 * @Description :
 * @date :2018/5/22 21:22
 */
@Data
public class ArticleVO{
    @Field("name")
    @JSONField(serialize = false)
    private String name;
    @Field("content")
    private String content;
    @Field("id")
    private String id;
    @Field("createTime")
    private Date createTime;
    public ArticleVO() {
    }

    public ArticleVO(String name, String content,String id) {
        this.name = name;
        this.content = content;
        this.id = id;
        this.createTime = new Date();
    }
    public ArticleVO(String name, String content,String id,Date createTime) {
        this.name = name;
        this.content = content;
        this.id = id;
        this.createTime = createTime;
    }
}
